﻿using System;
using System.Collections.Generic;
using System.Text;

namespace HBKY.Shop.Model.WebApiClients.Traffic.Fund
{
    /// <summary>
    /// 行情页 时光组合
    /// </summary>
    public class FofFundListDto
    {
        public string ResumeUrl { get; set; }

        public List<FofFundActiveListItemDto> List { get; set; }
    }

    /// <summary>
    /// 明细
    /// </summary>
    public class FofFundActiveListItemDto
    {
        public int Id { get; set; }

        public string FofFundName { get; set; }

        public string FofFundCode { get; set; }

        public int InnerCode { get; set; }

        public int Market { get; set; }

        public List<string> Tags { get; set; }

        public int DataType1 { get; set; }

        public string Data1Name { get; set; }

        public string Data1Value { get; set; }

        public string Description { get; set; }

        public string BtnText { get; set; }

        public int Sort { get; set; }

        public int Status { get; set; }

        /// <summary>
        /// 成立天數
        /// </summary>
        public string Duration { get; set; }

        /// <summary>
        /// 年度收入
        /// </summary>
        public string AnnualizedIncome { get; set; }

        public object Key => Id;

        /// <summary>
        /// 
        /// </summary>
        public List<DataTypeDto> DataTypeList { get; set; }


        /// <summary>
        /// 跳转链接
        /// </summary>
        public string Url => $"https://s1.niuniufund.com/group-detail/{InnerCode}";
    }

    public class DataTypeDto
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string TypeName { get; set; }

        /// <summary>
        /// 值
        /// </summary>
        public dynamic Value { get; set; }
    }
}
